<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%>
<body>
<div class="main">
<div class="main_title"><b>你当前的位置</b>：权限管理-新增/修改角色</div>

<s:form namespace="/role" action="addOrUpdate!addOrUpdate.action">
<s:if test="role.id != null">
<s:hidden name="role.id"/>
</s:if>
<table align="center"  cellpadding="1" cellspacing="1" class="tablelist">
	<s:if test="hasErrors()">
		<s:if test="hasFieldErrors()">
			<tr align="center">
				<td class="textError"><font color="red" size="4"><s:fielderror/></font></td>
				<td class="tableHeader2"></td>
			</tr>
		</s:if>
		<s:if test="hasActionErrors">
			<tr align="center">
				<td class="textError"><font color="blue"><s:actionerror/></font></td>
				<td class="tableHeader2"></td>
			</tr>
		</s:if>	
	</s:if>
	<tr class="listr2">
        <td align="right" class="listr6"><span class="fontred">*</span>角色名 </td>
		<td align="left" class="listr5">
		<s:textfield name="role.name" validate="{type:'required'}" cssStyle="width:154px; border:1px solid #7F9DB9; height:16px;padding-top:2px;margin-top:2px" size="30" />
		</td>
	</tr>
	<tr class="listr2">
        <td align="right" class="listr6">角色描述</td>
		<td align="left" class="listr5"><s:textfield name="role.detail" cssClass="searchInput" size="30" /></td>
	</tr>
	<tr class="listr4">    		
	    <td colspan="2">
	    	<s:submit cssClass="btn" onmouseover="this.className='btn_hover'" onmouseout="this.className='btn'" value="提交" ></s:submit>
			<input name="back" type="button" class="btn" onmouseover="this.className='btn_hover'" onmouseout="this.className='btn'"  value="返回" onclick="location.href='list.action'" />
	    </td>
	</tr>
</table>
</s:form>
</div>
</body>